module.exports = {
  pluginOptions: {
    electronBuilder: {
      nodeIntegration: true
    }
  },
  devServer: {
    proxy: {
      '/': {
        // target: 'http://185.239.227.142:3000',
        target: 'http://103.56.53.11:3000',
        ws: true,
        changeOrigin: true
      }
    }
  },

  chainWebpack: config => {
    config.module.rule('html')
      .test(/\.html$/)
      .use('html-loader')
      .loader('html-loader')
      .tap(ops => {
        return ops
      })
  }
}
